package com.ruoyi.project.distribute.service.impl;

import com.ruoyi.project.distribute.domain.HosDrug;
import com.ruoyi.project.distribute.mapper.HosDrugMapper;
import com.ruoyi.project.distribute.service.IHosDrugService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 *  药品信息 业务层
 * @author anran
 */
@Service
public class HosDrugServiceServiceImpl implements IHosDrugService
{
    @Autowired
    private HosDrugMapper hosDrugMapper;

    /**
     *  查询药品信息
     *
     * @param hosDrug 药品信息筛选条件
     * @return 药品信息集合
     */
    @Override
    public List<HosDrug> selectHosDrugList(HosDrug hosDrug)
    {
        return hosDrugMapper.selectHosDrugList(hosDrug);
    }

    /**
     * 根据ID删除药品信息
     *
     * @param ids ID数组
     * @return 删除结果
     */
    @Override
    public int deleteHosDrugByID(Long[] ids)
    {
        return hosDrugMapper.deleteHosDrugByID(ids);
    }
}
